package graph.drawingshapes.tools
{
	import graph.drawingshapes.RedrawEvent;
	
	public class SimpleDrawingTool extends DrawingTool
	{			
		public static const NAME:String = "SimpleDrawingTool"
		public override function get getName():String 
		{
			return NAME;
		}
		
		public static const DefaultSize:Number = 1;
		[Bindable]
		private var _size : Number = DefaultSize;
		public virtual function get size():Number
		{
			return this._size;
		}
		public virtual function set size(value:Number):void
		{
			if (this.size != value)
			{
				this._size = value;
				dispatchEvent(new RedrawEvent());
			}
		}
		
		public function SimpleDrawingTool(size:Number = DefaultSize, color:uint = DefaultColor, alpha:Number = DefaultAlpha)
		{
			super(color, alpha);
			this.size = size;
			dispatchEvent(new RedrawEvent());
		}
	}
}